home *** CD-ROM | disk | FTP | other *** search
- Path: news.bridge.net!news
- From: David Byrden <100101.2547@compuserve.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Class problem
- Date: 27 Feb 1996 17:22:08 GMT
- Organization: self-employed
- Message-ID: <4gvek0$cj8@news.bridge.net>
- References: <4gv6j2$klv@news-e2b.gnn.com>
- NNTP-Posting-Host: ppp-mia2-71.bridge.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
-
-
-
- >>>>>>>>
-
- cin >> addr.zip;
- cin >> addr.phone;
-
-
- int zip[11];
- int phone[10];
-
- <<<<<<<<<<<
-
-
- You don't understand what an int actually is, in physical terms. It
- is not a little box for holding one digit of a number; it is a rather
- large box for holding entire numbers of several digits (perhaps 5 or 10).
- cin does not understand arrays of int, only single ints.
-
- You need to change these arrays to char, is my opinion.
-
-
- David
-
-
-